package cn.jetpiece.cloud.joss.api.basic.model.params;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import java.io.Serializable;

/**
 * <p>
 * 创建内容类型记录
 * </p>
 *
 * @author XuJZ
 * @since 2020-09-08
 */
@Data
@ApiModel
public class CreateContentTypeParam implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 文件扩展名
     */
    @NotBlank(message = "文件扩展名不能为空")
    @ApiModelProperty(value = "文件扩展名", required = true)
    private String fileExtension;

    /**
     * 头部内容类型
     */
    @NotBlank(message = "头部内容类型不能为空")
    @ApiModelProperty(value = "头部内容类型", required = true)
    private String headerContentType;
}
